#include<stdio.h>
void func(int* ptr,int len)
{
    for(int i=0;i<len;i++)
    {
        printf("%d ",ptr[i]);
    }
    printf("\n");
}

int main()
{
    int a[10]={0};
    for(int i=0;i<10;i++)
    {
        a[i]=i+1;
        printf("a[%d]=%d\n",i,a[i]);
    }
    printf("array size:%ld\n",sizeof(a));
    int b[]={1,2,3,4,5};
    // printf("array num:%ld\n",sizeof(b)/sizeof(b[0]));
    func(b,sizeof(b)/sizeof(b[0]));
    return 0;
}